

<script type="text/javascript">
function copyToClipboard(txt) {  
      if(window.clipboardData) {  
              window.clipboardData.clearData();  
              window.clipboardData.setData("Text", txt);
            alert("复制成功");  
      } else if(navigator.userAgent.indexOf("Opera") != -1) {  
           window.location = txt;  
      } else if (window.netscape) {  
           try {  
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  


           } catch (e) {  
                alert("如果您正在使用FireFox！\n请在浏览器地址栏输入'about:config'并回车\n然后将 'signed.applets.codebase_principal_support'设置为'true'");  
           }  
           var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);  
           if (!clip)  
                return;  
           var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);  
           if (!trans)  
                return;  
           trans.addDataFlavor('text/unicode');  
           var str = new Object();  
           var len = new Object();  
           var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);  
           var copytext = txt;  
           str.data = copytext;  
           trans.setTransferData("text/unicode",str,copytext.length*2);  


           var clipid = Components.interfaces.nsIClipboard;  
           if (!clip)  
                return false;  
           clip.setData(trans,null,clipid.kGlobalClipboard);  
           alert("复制成功！")  
      }  
}
</script>

<table border="0" width="100%">
	<tr>
		<td>快速搜索: <input type="text" name="keys" value="{keys}" size="20">
	    <input style="background:url(images/ok.gif) no-repeat ; border:0; padding-left: 15px;" value="确定" onclick="sys_form.submit();" type="button">  
		</td>
		<td>　</td>
	</tr>
</table>


<table border="1" width="100%" id="table1" style="border-collapse: collapse" cellspacing="1" cellpadding="2" bordercolor="#C6C6C6">
	<tr>
		<td bgcolor="#E4E4E4" align="center" width="30">ID</td>
		<td bgcolor="#E4E4E4" align="center">标题</td>
		<td bgcolor="#E4E4E4" align="center" width="90">下载量</td>
		<td bgcolor="#E4E4E4" align="center" width="120">日期</td>
		<td bgcolor="#E4E4E4" align="center" width="80">操作</td>
	</tr>
<!-- while:$lt = $db->fetch_array($data_list) -->
	<tr  bgcolor="{color:#fffff,#ececec}">
		<td align="center">{lt[id]}</td>
		<td>{lt[subject]} [<a href="#" onclick="javascript:copyToClipboard('down.php?id={lt[id]}');return false;">复制</a>]</td>
		<td align="center" width="90">
		{run:=(int)$lt[nums]}
		</td>
		<td align="center">{run:=date("Y-m-d H:i",$lt['dates'])}</td>
		<td align="center"><a href="{sys_page}?model={model}&action=post&id={lt[id]}">编辑</a> | 
		<a onclick="javascript:if(confirm('您确定要继续当前操作吗?'))location='{sys_page}?model={model}&todo=del&id={lt[id]}';return false;" href="{sys_page}?model={model}&todo=del&id={lt[id]}" style="color:#800000">删除</a></td>
	</tr>
<!-- END -->

<!-- IF($_i==0) -->
	<tr>
		<td colspan="5" height="50" align="center" class="font13"><b>目前没有数据列表</b></td>
	</tr>
<!-- END -->
	<tr>
		<td colspan="5" align="left" class="font13">{pages}</td>
	</tr>
</table>